package com.tarena.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.tarena.util.ValidateUtils;

/**
 * 
 * @author 	WangPeihu
 * @since 		31/12/2009
 * @Team		[Never give up]
 */
public abstract class SecurityAction extends Action {

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		if (ValidateUtils.validate(request)) {
			securityExecute(request, response);
		}
	}

	public abstract void securityExecute(HttpServletRequest request,
			HttpServletResponse response)throws Exception;

}
